AdfUIComponents.createComponentClass("AdfRichShowDetail",{componentType:"oracle.adf.RichShowDetail",propertyKeys:[{name:"inlineStyle",type:"String"},{name:"styleClass",type:"String"},{name:"shortDesc",type:"String"},{name:"unsecure",type:"Object",secured:!0},{name:"visible",type:"Boolean","default":!0},{name:"persist",type:"Array"},{name:"dontPersist",type:"Array"},{name:"handleDisclosure",type:"String","default":"server"},{name:"contentDelivery",type:"String","default":"lazyUncached"},{name:"disclosedText", type:"String"},{name:"undisclosedText",type:"String"},{name:"disclosedTransient",type:"Boolean","default":!1}],superclass:AdfUIShowDetail}); AdfRichUIPeer.createPeerClass(AdfDhtmlShowDisclosurePeer,"AdfDhtmlShowDetailPeer",!1); AdfDhtmlShowDetailPeer.InitSubclass=function(){AdfDhtmlShowDetailPeer._SHOW_DETAIL_CHILD_CONTAINER_STYLE_CLASS="af|showDetail::child-container";AdfDhtmlShowDetailPeer._SHOW_DETAIL_HEADER_TEXT_STYLE_CLASS="af|showDetail::header-text";AdfDhtmlTogglePeer.Config(this,{ltrToggledIconName:"af|showDetail::disclosed-icon",ltrUntoggledIconName:"af|showDetail::undisclosed-icon",rtlToggledIconName:"af|showDetail::disclosed-icon:rtl",rtlUntoggledIconName:"af|showDetail::undisclosed-icon:rtl"})}; AdfDhtmlShowDetailPeer.prototype.HandleClientSideToggle=function(a){return AdfDhtmlShowDetailPeer.superclass.HandleClientSideToggle.call(this,a)?this._handleClientSideDisclosure(a):!1};AdfDhtmlShowDetailPeer.prototype.GetTitle=function(){var a=this.getComponent(),b;a.getDisclosed()?b=a.getProperty("disclosedText"):(b=a.getProperty("undisclosedText"),null==b&&(b=a.getProperty("disclosedText")));return b}; AdfDhtmlShowDetailPeer.prototype.ApplyTitle=function(a){var b=this.GetButtonImageElement(),d=AdfAgent.AGENT;d.setAttribute(b,"alt",a);d.setAttribute(b,"title",a);a=this.GetTitle();if(null!=a){var e=AdfPage.PAGE.getLookAndFeel().getSkinProperty(AdfDhtmlShowDetailPeer._SHOW_DETAIL_HEADER_TEXT_STYLE_CLASS),b=this.getDomElement(),b=AdfDomUtils.getFirstElementMatch(b,!0,function(a){return AdfDomUtils.containsCSSClassName(a,e)?a:null});null!=b&&(AdfDomUtils.removeAllNodes(b),b.appendChild(document.createTextNode(a)))}}; AdfDhtmlShowDetailPeer.prototype.EventPropagatesToServer=function(a){var b=AdfDhtmlShowDetailPeer.superclass.EventPropagatesToServer.call(this);if(!1==b){var d=this.getComponent();"lazy"==d.getPropertyValue("contentDelivery")&&null==this._getContentDomElement()&&(b=!0);!1==b&&!1==a&&(b=AdfPage.PAGE.getDirtyStateService().hasDirtyData(d))}return b}; AdfDhtmlShowDetailPeer.prototype._getContentDomElement=function(){var a=this.getDomElement(),b=AdfPage.PAGE.getLookAndFeel().getStyleClass(AdfDhtmlShowDetailPeer._SHOW_DETAIL_CHILD_CONTAINER_STYLE_CLASS);return AdfDomUtils.getFirstElementMatch(a,!0,AdfDomUtils.containsCSSClassName,b)};AdfDhtmlShowDetailPeer.prototype._handleClientSideDisclosure=function(a){var b=this._getContentDomElement();return null!=b?(b.style.display=a?"":"none",!0):!1};